package com.ruoyi.api.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口管理对象 project_api
 *
 * @author yhg
 * @date 2022-10-21
 */
@Data
public class ProjectApi extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 接口描述 */
    @Excel(name = "接口描述")
    private String apiName;

    /** 模块id */
    @Excel(name = "模块id")
    private Long moduleId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    @Excel(name = "接口负责人")
    private String developUser;

    /** 请求方式 1get 2 post */
    @Excel(name = "请求方式 1get 2 post")
    private Integer requestType;

    /** 接口名称地址 */
    @Excel(name = "接口名称地址")
    private String apiUrl;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long version;

    /** 接口状态（0正常 1停用） */
    @Excel(name = "接口状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setApiName(String apiName)
    {
        this.apiName = apiName;
    }

    public String getApiName()
    {
        return apiName;
    }
    public void setModuleId(Long moduleId)
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId()
    {
        return moduleId;
    }
    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectId()
    {
        return projectId;
    }
    public void setRequestType(Integer requestType)
    {
        this.requestType = requestType;
    }

    public Integer getRequestType()
    {
        return requestType;
    }
    public void setApiUrl(String apiUrl)
    {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl()
    {
        return apiUrl;
    }
    public void setVersion(Long version)
    {
        this.version = version;
    }

    public Long getVersion()
    {
        return version;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("apiName", getApiName())
            .append("moduleId", getModuleId())
            .append("projectId", getProjectId())
            .append("requestType", getRequestType())
            .append("apiUrl", getApiUrl())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
